package com.atguigu.guli.service.vod.service;


import com.aliyuncs.exceptions.ClientException;

import java.io.InputStream;
import java.util.List;

/**
 * @Author luodiab
 * @Date 2022/10/31 20:36
 */
public interface VideoService {
    String uploadVideo(InputStream file, String originalFilename);

    /**
     * 根据视频id删除视频
     * @param videoId
     */
    void removeVideo(String videoId) throws ClientException;

    /**
     * 根据视频id列表批量删除视频
     * @param videoIdList
     * @throws ClientException
     */
    void removeVideoByIdList(List<String> videoIdList) throws ClientException;

    /**
     * 根据视频id获取视频播放凭证
     * @param videoSourceId
     * @return
     * @throws ClientException
     */
    String getPlayAuth(String videoSourceId) throws ClientException;
}
